package com.winkey.facility.gateway.connector.gate.parking.oem.baisheng;

import com.sun.jna.NativeLong;
import com.winkey.facility.gateway.connector.gate.parking.ParkingGateConnector;
import com.winkey.facility.gateway.service.parking.impl.aist.Camera;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author yiyingzai
 */
@Component
public class BaiShengParking implements ParkingGateConnector {


    private Camera camera;

    @Autowired
    public BaiShengParking(Camera camera){
        this.camera = camera;
    }
    @Override
    public String auth(String[] authArgs) {
        return null;
    }

    @Override
    public void init() {
        camera.cameraInit();
    }

    @Override
    public NativeLong login(String camelIp) {
        return camera.login(camelIp);
    }

    @Override
    public String logout(NativeLong logId) {
       return camera.logout(logId);
    }
}
